home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
019
/
ratio16a.arc
/
RSB2-RAT.MRG
< prev
next >
Wrap
Text File
|
1988-04-12
|
3KB
|
67 lines
* ------------[ BLED merge (c) Ken Goosens ]-------------
* Merge this against RSB2-CLR.MRG to produce RSB2MODS.MRG
* RSB2-CLR.MRG: Date 4-12-1988 Size 16408 bytes
* ------------[ Created 04-12-1988 20:07:34 ]------------
* ------[ first line different ]------
* REPLACING old line(s) by new
* INSERTING new line(s)
10600 USER.FILE.INDEX = ORIG.USER.FILE.INDEX
CALL TIMEREMAIN (TIME.REMAINING!)
Q! = ELAPSED.TIME + _
((SECONDS.PER.SESSION! - TIME.CREDITS!)/ 60) - _
TIME.REMAINING!
IF Q! < -32000 THEN _
Q! = -32000 _
ELSE IF Q! > 32000 THEN _
Q! = 32000
IF USER.FILE.INDEX < 1 THEN _
GOTO 10607
UPDATE.DEFAULTS = (ACTIVE.USER.FILE$ = ORIG.USER.FILE$)
ACTIVE.USER.FILE$ = ORIG.USER.FILE$
SUBROUTINE.PARAMETER = 6
CALL FILELOCK
CALL OPENUSER (HIGHEST.USER.RECORD)
FIELD 5,31 AS USER.NAME$, _
15 AS PASSWORD$, _
2 AS SECURITY.LEVEL$, _
14 AS USER.OPTIONS$, _
24 AS CITY.STATE$, _
* ------[ first line different ]------
3 AS MACHINE.TYPE$, _ 'RATIO
4 AS TODAY.DL$, _ 'RATIO
4 AS TODAY.BYTES$, _ 'RATIO
4 AS DL.BYTES$, _ 'RATIO
4 AS UL.BYTES$, _ 'RATIO
14 AS LAST.DATE.TIME.ON$, _
3 AS LIST.NEW.DATE$, _
2 AS USER.DOWNLOADS$, _
2 AS USER.UPLOADS$, _
2 AS ELAPSED.TIME$
* REPLACING old line(s) by new
10605 LSET USER.DOWNLOADS$ = MKI$(DOWNLOADS)
LSET USER.UPLOADS$ = MKI$(UPLOADS)
* ------[ first line different ]------
LSET TODAY.DL$ = MKS$(DL.TODAY!) 'RATIO
LSET TODAY.BYTES$ = MKS$(BYTES.TODAY!) 'RATIO
LSET DL.BYTES$ = MKS$(DLBYTES!) 'RATIO
LSET UL.BYTES$ = MKS$(ULBYTES!) 'RATIO
LSET ELAPSED.TIME$ = MKI$(Q!)
IF ADJUSTED.SECURITY THEN _
LSET SECURITY.LEVEL$ = MKI$(USER.SECURITY.LEVEL)
PUT 5,USER.FILE.INDEX
* REPLACING old line(s) by new
20726 N$ = " >> uploaded << "
UPLOADS = UPLOADS + 1
* ------[ first line different ]------
ULBYTES! = ULBYTES! + BYTES.IN.FILE# 'RATIO
CALL MUZAK (7)
CALL TIMEREMAIN (TIME.REMAINING!)
X! = UPLOAD.TIME.FACTOR! * (TCA! - Q!)
TIME.CREDITS! = TIME.CREDITS! + X!
SECONDS.PER.SESSION! = SECONDS.PER.SESSION! + X!
X! = (X! - TCA! + Q!)/60.0
IF X! > 1.0 THEN _
CALL QTPUT ("Uploads are appreciated here. For today your",1) : _
CALL QTPUT ("SESSION & DAILY time limits increased by"+STR$(X!)+" minutes",1)
EXIT SUB